// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from "vue";
import App from "./App";
import store from "./store";
import router from "./router";
import {
  Button,
  Dialog,
  Empty,
  Field,
  Toast,
  CellGroup,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Sku,
  CountDown,
  Image as VanImage,
  Search,
  Grid,
  GridItem,
  Swipe,
  SwipeItem,
  Icon,
  Notify,
  AddressList,
  AddressEdit,
  Uploader,
  Loading,
  Checkbox,
  CheckboxGroup,
  Radio,
  RadioGroup,
  DropdownMenu,
  DropdownItem,
  SwipeCell,
  PullRefresh,
} from "vant";
import "../src/components/font_icon/iconfont.css";
import "../src/components/font_icon/iconfont.js";
import "./components/fonts/iconfont.css";

// swiper
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/css/swiper.css";
Vue.use(VueAwesomeSwiper /* { default options with global component } */ );

Vue.config.productionTip = false;

Vue.use(Button)
  .use(Dialog)
  .use(GoodsAction)
  .use(Empty)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Sku)
  .use(Field)
  .use(Toast)
  .use(VanImage)
  .use(CellGroup)
  .use(Grid)
  .use(GridItem)
  .use(Swipe)
  .use(SwipeItem)
  .use(CountDown)
  .use(Search)
  .use(Icon)
  .use(Notify)
  .use(AddressList)
  .use(AddressEdit)
  .use(Uploader)
  .use(Loading)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Radio)
  .use(RadioGroup)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(SwipeCell)
  .use(PullRefresh)


new Vue({
    el: "#app",
    router,
    store,
    components: { App },
    template: "<App/>"
});